import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2023 —09 —30
 * Time: 9:01
 */
public class test_9_30 {

    /*
    public static void main(String[] args) {
        int count = 0;
        for (int i = 1; i < 101; i++) {
            if (i / 10 == 9){
                count++;
            }
            if (i % 10 == 9){
                count++;
            }
        }
        System.out.println(count);
    }
    */



    /*
    //问多少个数字包含9，改代码
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();//可以随意输入最大范围的那个数
        int count = 0;
        for (int i = 1; i < n; i++) {
            if (i / 10 == 9){
                count++;
            }
            else if (i % 10 == 9){
                count++;
            }
        }
        System.out.println(count);
    }
    */

    /*
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        for (int i = 2; i < n-1 ; i++) {
            if (n % i ==0){
                System.out.println( n+"不是素数");
                break;
            }
            else{
                System.out.println( n+"是素数");
                break;
            }
        }
    }
    */

    /*
    //想想怎么判断一堆数字中哪些是素数，哪些不是素数
    public static void main(String[] args) {
        for (int n = 2; n < 100; n++) {

            for (int i = 2 ; i <= n - 1; i++) {
                if (n % i == 0) {
                    System.out.println(n + "不是素数");
                    break;
                } else {
                    System.out.println(n + "是素数");
                    break;
                }
            }

        }
    }
    */



    /*
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        int a = in.nextInt();
        int b = in.nextInt();
        int c = a % b;
        while (c != 0){
            a = b;
            b = c;
            c = a % b;
        }
        System.out.println(b + "是输入的两个数的最大公约数" );

    }
    */


    /*
    public static void main(String[] args) {
        double sum = 0;              //同时这里的sum也肯定是带小数的 sum<2
        int flag = -1;
        for (int i = 1; i < 101; i++) {
            sum = sum + 1.0/ ( i * (-flag) );   //这里 1/2 得到的数是0，int类型它只能表示到整数部分
            flag = -flag;
        }
        System.out.println(sum);
    }
    */


    /*
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        for (int i = 0; i < a; i++) {
            for (int j = 0; j < a; j++) {
                if (i == j || i + j == a-1){
                    System.out.print("x");
                }else {
                    System.out.print(" ");
                }

            }
            System.out.println();
        }
    }
    */


    /*
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        for (int i = 0; i < 3; i++) {
            System.out.println("请输入密码");
            int a = in.nextInt();
            if (a == 12345){
                System.out.println("密码正确，登陆成功");
                break;
            }else {
                System.out.println("密码错误，你还有" + (2-i) + "次机会");
            }
        }
    }
    */

    /*
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int count = 3;
        while (count != 0){
            System.out.println("请输入密码" + "你还有"+count+"次机会");
            String PASSWORD = in.nextLine();
            if (  PASSWORD.equals("1234")  ) {
                System.out.println("登陆成功");
                break;
            }else {
                System.out.println("密码错误");
                count--;
            }
        }
    }

    */

    /*
    public static void main(String[] args) {
        for (int i = 1; i <= 9 ; i++) {
            for (int j = 1; j <= i ; j++) {
                System.out.print(j + "*" + i + "=" + i * j + " " );

            }
            System.out.println();
        }
    }
    */


}
